package com.winphone.uavc.utils;

import com.winphone.uavc.entity.SysUser;
import org.apache.shiro.SecurityUtils;

/**
 * @author: zhou
 * @Description:
 * @Date:Create in 2017/12/14
 * @Modified By:
 */

public class SessionUtil {

    public static SysUser getCurrentUser(){
        SysUser user = (SysUser) SecurityUtils.getSubject().getSession().getAttribute("user");
        return user;
    }

}
